/**
 * @author zhu
 * @date 2024-03-22
 */
public class GirlThread extends Thread{
    private String name;
    private Box box;

    public GirlThread(String name, Box box) {
        this.name = name;
        this.box = box;
    }

    @Override
    public void run() {
        while (true){
            this.box.take(this.name);
        }
    }
}
